package com.thoughtworks.recruit.test.jgraph.graph.builder;

import com.thoughtworks.recruit.test.jgraph.interfaces.DiGraph;

/**
 * Base class for {@link DiGraphBuilder} for extending.
 * 
 * @param <V> the graph vertex type
 * @param <E> the graph edge type
 * @param <G> type of the resulting graph
 * @param <B> type of this builder
 * 
 */
public abstract class
DiGraphBuilderBase<V, E, G extends DiGraph<V, E>,
    B extends DiGraphBuilderBase<V, E, G, B>>
    extends AbstractGraphBuilder<V, E, G, B>
{
    /**
     * Creates a builder based on {@code baseGraph}. {@code baseGraph} must be mutable.
     *
     * @param baseGraph the graph object to base building on
     */
    public DiGraphBuilderBase(G baseGraph)
    {
        super(baseGraph);
    }
}
